home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wtek0693.zip
/
OOPALLEY.ZIP
/
LINK.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-27
|
1KB
|
32 lines
#ifndef LINK_H
#define LINK_H
#include "object.h"
extern const Class class_Link;
class LinkedList;
////////////////////////////////////////////////////////////
// class Link (declaration)
////////////////////////////////////////////////////////////
class Link: public Object {
Link* next; // pointer to next Link or nil
friend LinkedList;
protected:
// protected constructors
Link(const Link& nextlink) { next = (Link*)&nextlink; }
Link() { next = (Link*)nil; }
public:
// destructor
~Link();
Link* nextLink() const { return next; }
Link* nextLink(Link* nextlink) { next = nextlink; return next; }
virtual void deepenShallowCopy();
virtual const Class* isA() const;
virtual Object* shallowCopy() const; // shouldNotImplement
};
#endif